<?php
/**
 * @title API路由
 * @author Leruge
 * @email leruge@163.com
 */

use app\http\middleware\ApiLoginCheck;
use think\facade\Route;

Route::group('api', function () {
    // 无需登录路由


    // 需要登录路由
    Route::group(['middleware' => [ApiLoginCheck::class]], function () {
        Route::rule('chat', 'api/chat/chat'); // 聊天接口
        Route::rule('room_list', 'api/chat/roomList'); // 聊天房间列表
        Route::rule('service_room', 'api/chat/serviceRoom'); // 客服房间号
        Route::rule('chat_detail', 'api/chat/chatDetail'); // 房间聊天信息
        Route::rule('more_chat_detail', 'api/chat/moreChatDetail'); // 更多房间聊天信息
    });
});
